package com.fwmagic.dp._5;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {

        Director director = new Director();
        director.getABenzModel().run();
        System.out.println("===================");
        director.getBBenzModel().run();
        System.out.println("===================");
        director.getCBwmModel().run();
        System.out.println("===================");
        director.getDBwmModel().run();

       /*
        ArrayList<String> sequence = new ArrayList<>();
        sequence.add("engineBoom");
        sequence.add("start");
        sequence.add("stop");

        BenzCarBuilder benzCarBuilder = new BenzCarBuilder();
        benzCarBuilder.setSequence(sequence);
        BenzModel benzModel = (BenzModel)benzCarBuilder.getCarModel();
        benzModel.run();

        System.out.println("============================");

        BWMCarBuilder bwmCarBuilder = new BWMCarBuilder();
        bwmCarBuilder.setSequence(sequence);
        BWMModel bwmModel = (BWMModel)bwmCarBuilder.getCarModel();
        bwmModel.run();
        */

      /*  BenzModel benz = new BenzModel();

        ArrayList<String> sequence = new ArrayList<>();
        sequence.add("engineBoom");
        sequence.add("start");
        sequence.add("stop");

        benz.setSequence(sequence);
        benz.run();*/


    }
}
